package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="DM_SPZT"
 *     
*/
public class DmSpzt implements Serializable {

    /** identifier field */
    private String spztDm;

    /** persistent field */
    private String spztMc;

    /** full constructor */
    public DmSpzt(String spztDm, String spztMc) {
        this.spztDm = spztDm;
        this.spztMc = spztMc;
    }

    /** default constructor */
    public DmSpzt() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="SPZT_DM"
     *         
     */
    public String getSpztDm() {
        return this.spztDm;
    }

    public void setSpztDm(String spztDm) {
        this.spztDm = spztDm;
    }

    /** 
     *            @hibernate.property
     *             column="SPZT_MC"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getSpztMc() {
        return this.spztMc;
    }

    public void setSpztMc(String spztMc) {
        this.spztMc = spztMc;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("spztDm", getSpztDm())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof DmSpzt) ) return false;
        DmSpzt castOther = (DmSpzt) other;
        return new EqualsBuilder()
            .append(this.getSpztDm(), castOther.getSpztDm())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getSpztDm())
            .toHashCode();
    }

}
